package com.fish.service.impl.passport;

import java.util.List;

import com.fish.passport.dao.PassPortCodeDAO;
import com.fish.passport.po.PassPortCode;
import com.fish.service.passport.PassPortCodeService;

/**
 * @author ShiHui
 */
public class PassPortCodeServiceImpl implements PassPortCodeService {
	private PassPortCodeDAO passPortCodeDAO;

	public List<PassPortCode> queryPassPortCodes(String codeId) {
		return passPortCodeDAO.queryPassPortCodes(codeId);
	}

	public boolean selectByPortId(String portId) {
		return passPortCodeDAO.selectByPortId(portId);
	}
	/**
	 * 添加通关码关联信息
	 * @param passPortCodes
	 */
	public void addPassPortCodes(PassPortCode passPortCode){
		   this.passPortCodeDAO.addPassPortCode(passPortCode);
	}
	/**
	 * 修改
	 * */
	public void updatePassPortCode(PassPortCode passPortCode){
		this.passPortCodeDAO.updatePassPortCode(passPortCode);
	}
	/**
	 * 查询通关点关联信息
	 * @param codeId
	 * @return
	 */
	public PassPortCode getPassPortCodeByCodeIdAndPortId(String codeId,String portId){
		return this.passPortCodeDAO.getPassPortCodeByCodeIdAndPortId(codeId, portId);
	}
	public void setPassPortCodeDAO(PassPortCodeDAO passPortCodeDAO) {
		this.passPortCodeDAO = passPortCodeDAO;
	}

}
